home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
miffypuzzle.swf
/
scripts
/
frame_1
/
PlaceObject2_4_484
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2007-09-27
|
1KB
|
55 lines
onClipEvent(enterFrame){
_root.time = int(getTimer() / 100);
var checkAll = 0;
i = 0;
while(i < 16)
{
checkAll += Number(_root.checkAllArray[i]);
i++;
}
if(checkAll == 16 && (_root.firstCheckAll == 0 || _root.firstCheckAll eq ""))
{
i = 1;
while(i < 17)
{
if(i <= 9)
{
var thePuzzlePiece = "_root.p00" + i + ".whitelines";
tellTarget(thePuzzlePiece)
{
_visible = 0;
}
var thePuzzlePiece = "_root.p00" + i + ".blackLines";
tellTarget(thePuzzlePiece)
{
_visible = 0;
}
}
else
{
var thePuzzlePiece = "_root.p0" + i + ".whitelines";
tellTarget(thePuzzlePiece)
{
_visible = 0;
}
var thePuzzlePiece = "_root.p0" + i + ".blackLines";
tellTarget(thePuzzlePiece)
{
_visible = 0;
}
}
i++;
}
_root.firstCheckAll = 1;
_root.timeOld = _root.time + 10;
}
if(_root.firstCheckAll == 1)
{
if(_root.time >= _root.timeOld)
{
_root.M_nextLevelTXT._visible = 1;
_root.firstCheckAll = 2;
}
}
}